<html>
<head><meta charset="utf-8"><title>fatal error: llvm-c/BitReader.h: No such file or directory · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/fatal.20error.3A.20llvm-c.2FBitReader.2Eh.3A.20No.20such.20file.20or.20directory.html">fatal error: llvm-c/BitReader.h: No such file or directory</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="181881536"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/fatal%20error%3A%20llvm-c/BitReader.h%3A%20No%20such%20file%20or%20directory/near/181881536" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/fatal.20error.3A.20llvm-c.2FBitReader.2Eh.3A.20No.20such.20file.20or.20directory.html#181881536">(Nov 26 2019 at 01:19)</a>:</h4>
<p>Hi all,<br>
I'm trying to get started contributing to the compiler for <a href="https://github.com/rust-lang/rust/issues/66758" target="_blank" title="https://github.com/rust-lang/rust/issues/66758">https://github.com/rust-lang/rust/issues/66758</a>. I ran <code>./x.py test src/test/ui/consts --stage 1</code> about an hour ago and that worked fine (although it took a while ^^). However, since then I updated <code>nightly</code> and I'm now getting compile errors when building stage 1:</p>
<div class="codehilite"><pre><span></span>cargo:warning=In file included from ../rustllvm/PassWrapper.cpp:6:0:
cargo:warning=../rustllvm/rustllvm.h:1:10: fatal error: llvm-c/BitReader.h: No such file or directory
cargo:warning= #include &quot;llvm-c/BitReader.h&quot;
cargo:warning=          ^~~~~~~~~~~~~~~~~~~~
</pre></div>


<p>What am I doing wrong?</p>
<p>Full error: <a href="https://pastebin.com/pbnpgmK9" target="_blank" title="https://pastebin.com/pbnpgmK9">https://pastebin.com/pbnpgmK9</a></p>



<a name="181932384"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/fatal%20error%3A%20llvm-c/BitReader.h%3A%20No%20such%20file%20or%20directory/near/181932384" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/fatal.20error.3A.20llvm-c.2FBitReader.2Eh.3A.20No.20such.20file.20or.20directory.html#181932384">(Nov 26 2019 at 15:31)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span> that seems bad... not sure why updating nightly has any effect tho</p>



<a name="181932401"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/fatal%20error%3A%20llvm-c/BitReader.h%3A%20No%20such%20file%20or%20directory/near/181932401" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/fatal.20error.3A.20llvm-c.2FBitReader.2Eh.3A.20No.20such.20file.20or.20directory.html#181932401">(Nov 26 2019 at 15:31)</a>:</h4>
<p>try deleting your target and build directories</p>



<a name="181932415"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/fatal%20error%3A%20llvm-c/BitReader.h%3A%20No%20such%20file%20or%20directory/near/181932415" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/fatal.20error.3A.20llvm-c.2FBitReader.2Eh.3A.20No.20such.20file.20or.20directory.html#181932415">(Nov 26 2019 at 15:31)</a>:</h4>
<p>(you'll need to rebuild llvm)</p>



<a name="181933625"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/fatal%20error%3A%20llvm-c/BitReader.h%3A%20No%20such%20file%20or%20directory/near/181933625" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/fatal.20error.3A.20llvm-c.2FBitReader.2Eh.3A.20No.20such.20file.20or.20directory.html#181933625">(Nov 26 2019 at 15:41)</a>:</h4>
<p>Rebuilding now, I'll let you know how it goes.</p>



<a name="181942512"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/fatal%20error%3A%20llvm-c/BitReader.h%3A%20No%20such%20file%20or%20directory/near/181942512" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/fatal.20error.3A.20llvm-c.2FBitReader.2Eh.3A.20No.20such.20file.20or.20directory.html#181942512">(Nov 26 2019 at 17:09)</a>:</h4>
<p>That fixed it :) No idea what went wrong but it's working now, thanks for the help!</p>



<a name="181942886"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/fatal%20error%3A%20llvm-c/BitReader.h%3A%20No%20such%20file%20or%20directory/near/181942886" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/fatal.20error.3A.20llvm-c.2FBitReader.2Eh.3A.20No.20such.20file.20or.20directory.html#181942886">(Nov 26 2019 at 17:13)</a>:</h4>
<p><span aria-label="slight smile" class="emoji emoji-1f642" role="img" title="slight smile">:slight_smile:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>